﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="views_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        p
        {
            margin: 10px;
            height: 25px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        function alpha(e) {
            var k;
            document.all ? k = e.keyCode : k = e.which;
            return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || k == 32 || (k >= 48 && k <= 57));
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
   <div style="width: 740px; height: auto;">
        <div style="width: 250px; height: auto; float: left;">
            <p style="text-align: right;">
                Tên Tài khoảng :</p>
            <p style="text-align: right;">
                Mật khẩu :</p>
        </div>
        <div style="width: 490px; height: auto; float: left;">
            <p>
                <asp:TextBox ID="txtusername" onkeypress="return alpha(event)" runat="server" 
                    Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
                    ControlToValidate="txtusername">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:TextBox ID="txtpassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
                    ControlToValidate="txtpassword">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Button ID="btnok" runat="server" Text="Đăng nhập" Width="100px" 
                    onclick="btnok_Click" /></p>
        </div>
    </div>
    </form>
</body>
</html>
